﻿<div class="Paging">
    @{     
        int intPage = (int)ViewBag.SumPage;
        string pg = ViewBag.paging != null ? ViewBag.paging : "1";
        int paging = int.Parse(pg);
        if (intPage > 1)
        {
        <div>
            @if (paging > 1 && paging < intPage)
            { 
@*<a href="javascript:PagePrevious();">&laquo;</a>*@
                @Html.Raw(ViewBag.lstPage)                                
@*<a href="javascript:PageNext();">&raquo;</a> *@
            }
            @if (paging == 1 && paging < intPage)
            {
                @Html.Raw(ViewBag.lstPage)             
@*<a href="javascript:PageNext();">&raquo;</a> *@
            }
            @if (paging > 1 && paging == intPage)
            {
@*<a href="javascript:PagePrevious();">&laquo;</a>*@
                @Html.Raw(ViewBag.lstPage)             
            }
        </div>
        }
        else
        {
        <div>
            Trang <span style="color: #DC1D25">1</span>
        </div>
        }
    }
</div>
